package com.czc.leavext.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.czc.leavext.dao.mapper.EmployeeMapper;
import com.czc.leavext.entity.Employee;
import com.czc.leavext.service.IEmployeeService;

@Service("empService")
public class EmployeeServiceImpl implements IEmployeeService{
	@Autowired
	private EmployeeMapper empMapper;

	@Override
	public void addEmployee(Employee employee) {
		empMapper.addEmployee(employee);
	}

	@Override
	public Employee getEmployee(int id) {
		Employee emp = empMapper.getEmployee(id);
		return emp;
	}

}
